export default function(width, height) {
	const MAX_WIDTH = 600;
	const MAX_HEIGHT = 800;
	let ratio;

	if (width > height) {
		ratio = MAX_WIDTH / width
	} else {
		ratio = MAX_HEIGHT / height
	}

	const scale = Math.min(ratio, 1); // 确保不会超过原始尺寸
	const newWidth = parseInt(width * scale);
	const newHeight = parseInt(height * scale);
	return {
		width: newWidth + "rpx",
		height: newHeight + "rpx",

	}

}